﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Communergy.Common;
using System.ServiceModel;

namespace Communergy.Common
{
    [ServiceContract]
    public interface IHistoricRepository
    {
        [OperationContract]
        void Insert_ElectricityHourly(string meterId, List<HistoricalEnergyReading> hourlyEnergyReadings);
        [OperationContract]
        void Insert_ElectricityDaily(string meterId, List<HistoricalEnergyReading> dailyEnergyReadings);
        [OperationContract]
        void Insert_ElectricityMonthly(string meterId, List<HistoricalEnergyReading> monthlyEnergyReadings);

        [OperationContract]
        List<HistoricalEnergyReading> GetHourly(string meterId, DateTime dateFrom);
    }
}
